<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>空间平移-translate3d</title>
    <style>
        div{
            width: 200px;
            height: 220px;
            background-color: #ff5151;
            margin: 200px auto;
            transition: all 0.5s;

        }
        div:hover{
            /* 电脑是平面，默认无法观察Z轴平移效果 */
            transform: translate3d(120px,50px,100px);
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>
